package com.kis.pattern.proxy;

/**
 * Created by yks on 15-11-17.
 */
public class ProxyUserServiceImpl implements UserService{
    private UserService userService;

    public ProxyUserServiceImpl(UserService userService) {
        this.userService = userService;
    }

    @Override
    public void buy() {
        System.out.println("in proxy before buy");
        userService.buy();
        System.out.println("in proxy after buy");
    }
}
